
import request from '@/utils/request'

export function CertificationAward(params) {
    return request.post('/certification/get/certification', params);
}


export function deleteCertification(id) {
    return request.delete(`/certification/deleteById/${id}`);
}


export function getCertificationById(id) {
    return request.get(`/certification/getCertificationById/${id}`);
}

export function updateCertification(certificationData) {
    return request.put('/certification/update', certificationData);
}

export function saveCertification(certificationData) {
    return request.post('/certification/save', certificationData);
}

//根据多个id批量查询数据
export function getCertificationByids(params) {
    return request.post('/certification/getCertificationByIds', params, {
    });
}

//批量导出
export function exportCertification(params) {
    return request.post('/certification/export', params, {
        responseType: 'blob'
    });
}
